"""
@author: haha
@file: tasks.py
@time: 2023/3/8 0008 16:44:43
"""
from . import ss_celery
import time
from libs.send_user_mail import send_mail

@ss_celery.task
def celery_task(sth1, sth2):
    print("celery_app.celery_task starting....")
    print(sth1)
    send_mail(sth1, sth2)
    time.sleep(2)
    print("celery_app.celery_task end....")

@ss_celery.task
def scheduled_task(*args, **kwargs):
    print("schedule_task starting...")
    print(*args, **kwargs)
    time.sleep(2)
    print("schedule_task end......")
